package com.tedu;
public class SubCls extends SuperCls{
        int a = 6;
        public SubCls(){
            super();
            test();
        }
        public void  test(){
            System.out.println(a);
        }
    public static void main(String[] args) {
        new SubCls();
    }
}
class SuperCls{
    int a = 8;
    public SuperCls(){
        super();
        test();
    }
    public void test() {
        System.out.println(a);
    }
}
